#include<iostream>
using namespace std;
typedef long long LL;
LL a, b, c, x, y, z;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		cin >> a >> b >> c;
		x = a + b + c;
		y = b + c;
		z = c;
		cout << x << " " << y << " " << z << endl;
	}
	return 0;
}